<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>templi php 框架: UploadFile类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">templi php 框架
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.4 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>函数</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="classUploadFile-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">UploadFile类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a48f90ddf53728aebaf9200bfc13be9a2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a48f90ddf53728aebaf9200bfc13be9a2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>__get</b> ($name)</td></tr>
<tr class="separator:a48f90ddf53728aebaf9200bfc13be9a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad44158a9ebf5abe6e3b227bb85642e0b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad44158a9ebf5abe6e3b227bb85642e0b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>__set</b> ($name, $value)</td></tr>
<tr class="separator:ad44158a9ebf5abe6e3b227bb85642e0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a013f4a1a74cb190ef36a259860dbf700"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a013f4a1a74cb190ef36a259860dbf700"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>__isset</b> ($name)</td></tr>
<tr class="separator:a013f4a1a74cb190ef36a259860dbf700"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68d10be07ff0aec6cda823146921f466"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUploadFile.html#a68d10be07ff0aec6cda823146921f466">__construct</a> ($config=array())</td></tr>
<tr class="separator:a68d10be07ff0aec6cda823146921f466"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a876b74316d4c097afccc2ed336191c11"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUploadFile.html#a876b74316d4c097afccc2ed336191c11">upload</a> ($savePath='')</td></tr>
<tr class="separator:a876b74316d4c097afccc2ed336191c11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bb45c9d080ffdd6a087a408c7c76616"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUploadFile.html#a1bb45c9d080ffdd6a087a408c7c76616">uploadOne</a> ($file, $savePath='')</td></tr>
<tr class="separator:a1bb45c9d080ffdd6a087a408c7c76616"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9f8283fbca9236d9ed54d810c6ecc3c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUploadFile.html#af9f8283fbca9236d9ed54d810c6ecc3c">getUploadFileInfo</a> ()</td></tr>
<tr class="separator:af9f8283fbca9236d9ed54d810c6ecc3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b93591824c678044380f1462a960088"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUploadFile.html#a5b93591824c678044380f1462a960088">getErrorMsg</a> ()</td></tr>
<tr class="separator:a5b93591824c678044380f1462a960088"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a2bfb48eaa134603743dba0f8186ab3d3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUploadFile.html#a2bfb48eaa134603743dba0f8186ab3d3">error</a> ($errorNo)</td></tr>
<tr class="separator:a2bfb48eaa134603743dba0f8186ab3d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>文件上传类 thinkphp 类库 </p>
<dl class="section author"><dt>作者</dt><dd>liu21st <a href="#" onclick="location.href='mai'+'lto:'+'liu'+'21'+'st@'+'gm'+'ail'+'.c'+'om'; return false;">liu21<span style="display: none;">.nosp@m.</span>st@g<span style="display: none;">.nosp@m.</span>mail.<span style="display: none;">.nosp@m.</span>com</a> </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="a68d10be07ff0aec6cda823146921f466"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UploadFile::__construct </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$config</em> = <code>array()</code>)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>架构函数  public </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramtype">array</td><td class="paramname">$config</td><td>上传参数 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a2bfb48eaa134603743dba0f8186ab3d3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">UploadFile::error </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$errorNo</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取错误代码信息  public </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$errorNo</td><td>错误号码 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a5b93591824c678044380f1462a960088"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UploadFile::getErrorMsg </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>取得最后一次错误信息  public </p>
<dl class="section return"><dt>返回</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="af9f8283fbca9236d9ed54d810c6ecc3c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UploadFile::getUploadFileInfo </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>取得上传文件的信息  public </p>
<dl class="section return"><dt>返回</dt><dd>array </dd></dl>

</div>
</div>
<a class="anchor" id="a876b74316d4c097afccc2ed336191c11"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UploadFile::upload </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$savePath</em> = <code>''</code>)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>上传所有文件  public </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$savePath</td><td>上传文件保存路径 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="a1bb45c9d080ffdd6a087a408c7c76616"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UploadFile::uploadOne </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$savePath</em> = <code>''</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>上传单个上传字段中的文件 支持多附件  public </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramtype">array</td><td class="paramname">$file</td><td>上传文件信息 </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$savePath</td><td>上传文件保存路径 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>string </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>templi/UploadFile.class.php</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2014年 一月 15日 星期三 15:42:02 , 为 templi php 框架使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
</small></address>
</body>
</html>
